package edu.xust.dao.impl;

import edu.xust.config.Repository;
import edu.xust.config.Resource;
import edu.xust.dao.PsOrderDao;
import edu.xust.entity.PsOrder;
import edu.xust.entity.PsOrderExample;
import edu.xust.mapper.PsOrderMapper;

import java.util.List;

@Repository("psOrderDao")
public class PsOrderDaoImpl implements PsOrderDao {
    @Resource
    PsOrderMapper psOrderMapper;

    @Override
    public List<PsOrder> getPsOrdersByArea(String area) {
        PsOrderExample example = new PsOrderExample();
        example.createCriteria().andPsAreaEqualTo(area);
        return psOrderMapper.selectByExample(example);
    }
}
